<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/style1.css" rel="stylesheet" type="text/css" />
<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/select.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Static/css/hdjs.css" />
<script>
	var isTopCate = "<?php echo U('Category/isTopCate');?>";
</script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/hdjs.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/Category/js/addCategory.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/js/select-ui.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/Category/js/selecttype.js"></script>

  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">修改分类</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
   
    <div id="usual1" class="usual"> 
     
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected">添加分类</a></li> 
    <!--<li><a href="#tab2">自定义</a></li>--> 
  	</ul>
    </div> 
    
  	<div id="tab1" class="tabson">
    
    <div class="formtext">Hi，<b><?php echo $hd['session']['adminUser'];?></b>，欢迎管理员大人</div>
    <form action="<?php echo U('editCategory');?>" method="post" id="addCateForm">
    <ul class="forminfo">
    <li><label for="cname">分类名<b>*</b></label><input id="cname" name="cname" type="text" value="<?php echo $currentCate['cname'];?>" class="dfinput" placeholder="请输入分类名称"  style="width:518px;"/></li>
    <input type="hidden" value="<?php echo $currentCate['cid'];?>" name="cid" />
    <li><label>父类<b>*</b></label>
    <div class="vocation">
    <select class="select1" name="pid">
    <option value="0">顶级分类</option>
    <?php foreach ($cateTree as $key=>$val){?>
    	<option value="<?php echo $val['cid'];?>"     <?php if($currentCate['pid']==$val['cid']){ ?>selected="selected"<?php } ?> ><?php echo $val['_name'];?></option>
    <?php }?>
    </select>
    </div>
    
    </li>
    <li class="selectType"><label>类型<b>*</b></label>
    	<div class="vocation">
   		<select class="select1" name="type_id">
		<option value="0">请选择</option>
		<?php foreach ($types as $key=>$val){?>
			<option value="<?php echo $val['tid'];?>"     <?php if($val['tid']==$currentCate['type_id']){ ?>selected="selected"<?php } ?> ><?php echo $val['typename'];?></option>
		<?php }?>
		</select>
    </div>
    </li>
   	<li><label>分类描述<b>*</b></label><input name="cdesc" type="text" value="<?php echo $currentCate['cdesc'];?>" class="dfinput" placeholder="请填写分类描述"  style="width:518px;"/></li> 
    <li><label>分类排序<b>*</b></label><input name="csort" type="text" value="<?php echo $currentCate['csort'];?>" class="dfinput" value="100"  style="width:100px;"/></li>
    <li><label>是否显示<b>*</b></label>
    	<label for="show"><input name="is_show" type="radio" value="1" id="show"     <?php if($currentCate['is_show']==1){ ?>checked="checked"<?php } ?>/>显示</label>
    	<label for="noshow"><input name="is_show" type="radio" value="0"  id="noshow"     <?php if($currentCate['is_show']==0){ ?>checked="checked"<?php } ?> />隐藏</label>
    </li>
    <li><label>导航上显示<b>*</b></label>
    	<label for="show_nav"><input name="is_show_nav" type="radio" value="1" id="show_nav"     <?php if($currentCate['is_show_nav']==1){ ?>checked="checked"<?php } ?> />显示</label>
    	<label for="noshow_nav"><input name="is_show_nav" type="radio" value="0"  id="noshow_nav"     <?php if($currentCate['is_show_nav']==0){ ?>checked="checked"<?php } ?> />隐藏</label>
    </li>
     <li><label>是否热门<b>*</b></label>
    	<label for="is_hot"><input name="is_hot" type="radio" value="1" id="is_hot"     <?php if($currentCate['is_hot']==1){ ?>checked="checked"<?php } ?> />热门</label>
    	<label for="is_not_hot"><input name="is_hot" type="radio" value="0"  id="is_not_hot"     <?php if($currentCate['is_hot']==0){ ?>checked="checked"<?php } ?> />正常</label>
    </li>
    <li><label>&nbsp;</label><input type="submit" class="btn" value="添加分类"/></li>
    </ul>
    </form>
    </div> 
    
	</div> 

    
    
    </div>


</body>

</html>
